﻿namespace TruckScale.ViewModels
{
  public partial class MainViewModel
  {
    public enum WeighingStatus
    {
      Ready,
      InProgress,
      Completed
    }

    private WeighingStatus weighingStatus;

    private void CheckBtnEnable()
    {
      if (IsInitialized)
      {
        App.Current.Dispatcher.Invoke(() =>
        {
          FirstWeighCommand?.InvalidateCanExecute();
          SecondWeighCommand?.InvalidateCanExecute();
        });
      }
    }
  }
}
